package org.pf.constructor.bodyDefs
{
	import Box2D.Dynamics.b2Body;
	import Box2D.Dynamics.b2BodyDef;
	
	/**
	 * ...
	 * @author zeksa'
	 */
	public class B2DBodyDef extends b2BodyDef
	{
		
		public function B2DBodyDef(posX:Number, posY:Number, rot:Number,isDynamic:Boolean = false)
		{
		//	super();
			if (isDynamic)
			{
				type = b2Body.b2_dynamicBody;
			}
			position.Set(posX / 30, posY / 30);
			angle = (rot/57.296) * 180 / Math.PI;
			fixedRotation = false;
		}
	
	}

}